gtk_tree_model_filter_row_deleted: don't emit signals too early
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Feb 2011 23:40:14 +0000 (18:40 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Feb 2011 23:48:42 +0000 (18:48 -0500)
commit0c3da06a62bea69cb34ab80205644fa25856b019
treee01493c449e05e21c09a8abac4942defb2740f03
parent32298832ed70d5ac7836d46de3df0049b37a3eec
gtk_tree_model_filter_row_deleted: don't emit signals too early

gtk_tree_model_filter_row_deleted was emitting ::row-deleted while
the internal state of the model was still in disarray, causing
segfaults e.g. when mapping the file chooser with accessibility
turned on. This is just a bandaid fix, and doesn't try address
any of the deeper problems of the filter model code.

I did take the time to reduce rampant variable shadowing in that
function, though.
gtk/gtktreemodelfilter.c